package com.ruoyi.patrol.service.impl;

import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.patrol.domain.PtLineStaff;
import com.ruoyi.patrol.domain.vo.ScheduleInfo;
import com.ruoyi.patrol.mapper.PtLineRecordStaffMapper;
import com.ruoyi.patrol.mapper.PtLineStaffMapper;
import com.ruoyi.patrol.mapper.PtSiteRecordStaffMapper;
import com.ruoyi.patrol.service.IPtLineRecordStaffService;
import com.ruoyi.patrol.service.IPtLineStaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 巡查排班(行政)Service业务层处理
 *
 * @author mlb
 * @date 2022-11-21
 */
@Service
public class PtLineRecordStaffServiceImpl implements IPtLineRecordStaffService {
    @Autowired
    private PtLineRecordStaffMapper ptLineRecordStaffMapper;

    /**
     * 查询巡查排班(行政)列表
     *
     * @param ptLineStaff 巡查排班(行政)
     * @return 巡查排班(行政)
     */
    @Override
    @DataScope(deptAlias = "l")
    public List<PtLineStaff> selectPtLineStaffList(PtLineStaff ptLineStaff) {
        return ptLineRecordStaffMapper.selectPtLineStaffList(ptLineStaff);
    }

    /**
     * 导出行政记录
     *
     * @param ptLineStaff
     * @return
     */
    @Override
    @DataScope(deptAlias = "l")
    public List<PtLineStaff> selectPtLineStaffListExcel(PtLineStaff ptLineStaff) {
        return ptLineRecordStaffMapper.selectPtLineStaffListExcel(ptLineStaff);
    }
}
